﻿using System;
using System.Windows;
using System.Windows.Data;

namespace WpfEncryption.Converter
{
    class DropTextConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            var isfile = System.Convert.ToBoolean(value);
            return isfile ? "Drop file into window" : "press key in here";
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return DependencyProperty.UnsetValue;
        }
    }
}
